home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / networking / rpcdemo / rminfo.x < prev    next >
Encoding:
Text File  |  1994-08-02  |  1.0 KB  |  39 lines

  1. /*
  2.  * Copyright (C) 1992, Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  */
  5. /*
  6.  * rminfo.x --
  7.  *
  8.  *    This is the RPC language specification for sending and retrieving
  9.  *    IRIX real memory usage information. It is converted into client,
  10.  *    server and XDR routines using rpcgen(1).
  11.  *
  12.  *    Note: osview(1) displays this information under the "Real Memory"
  13.  *    section.
  14.  */
  15.  
  16. struct rminfo1 {
  17.     long     freemem;        /* current pages free memory */
  18.     long    availsmem;      /* available real and swap memory */
  19.     long    availrmem;      /* available real memory */
  20.     long    bufmem;         /* attached to metadata cache */
  21.     long    physmem;        /* total real memory */
  22.     long    delwri;         /* delayed writes */
  23. };    
  24.  
  25.  
  26. /*
  27.  * Note: the program number 391063 is temporarily borrowed from
  28.  * the list of SGI reserved numbers in /etc/rpc.
  29.  *
  30.  * If this was for a real protocol, we would register it with rpc@sun.com
  31.  * to get a real RPC number.
  32.  */
  33.  
  34. program RMINFOPROG {
  35.     version RMINFOVERS {
  36.     rminfo1 RMINFOPROC_GET(void) = 1;
  37.     } = 1;
  38. } = 391063;
  39.